libotutil: Plug a leak
authorKrzesimir Nowak <krzesimir@kinvolk.io>
Tue, 24 May 2016 08:36:38 +0000 (10:36 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 24 May 2016 11:36:15 +0000 (11:36 +0000)
commit2f2af9252db84b2a0c91324788722c4335411c8b
tree9629fbc6bcc36cf45a422c9485ca2337b81481c7
parente3e82c54c16392a9712ed9288fe7998a575fec56
libotutil: Plug a leak

There's no need to allocate the variant builder on a heap, so allocate
it on the stack and avoid a memory leak at the same time.

Closes: #307
Approved by: cgwalters
src/libotutil/ot-variant-utils.c